{% load static %}
<!DOCTYPE html>
<html>

<head>
    <meta charset = "UTF-8">
    <title>文章列表</title>
    <meta name = "Description" content = "基于layUI数据表格操作" />
    <meta name = "renderer" content = "webkit">
    <meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1">
    <meta name = "viewport"
          content = "width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel = "stylesheet" href = "{% static 'background/css/font.css' %}">
    <link rel = "stylesheet" href = "{% static 'background/css/weadmin.css' %}">
    <style type = "text/css">
        .layui-form-switch {
            width: 55px;
        }

        .layui-form-switch em {
            width: 40px;
        }

        body {
            overflow-y: scroll;
        }
    </style>
</head>

<body>
<div class = "weadmin-nav">
			<span class = "layui-breadcrumb">
        <a href = "">首页</a>
        <a href = "">文章管理</a>
        <a>
          <cite>文章列表</cite></a>
      </span>
    <a class = "layui-btn layui-btn-sm" style = "line-height:1.6em;margin-top:3px;float:right"
       href = "javascript:location.replace(location.href);" title = "刷新">
        <i class = "layui-icon" style = "line-height:30px">&#x1002;</i></a>
</div>
<div class = "weadmin-body">
    <div class = "layui-row">
        <form class = "layui-form layui-col-md12 we-search">
            文章搜索：
            <div class = "layui-inline">
                <input type = "text" name = "title" placeholder = "请输入关键字" autocomplete = "off" class = "layui-input">
            </div>
            <button class = "layui-btn" lay-submit = "" lay-filter = "search"><i class = "layui-icon">&#xe615;</i>
            </button>
        </form>
    </div>
{#    <div class = "weadmin-block demoTable">#}
{#        <button class = "layui-btn layui-btn-danger" onclick = "delAll()">#}
{#            <i class = "layui-icon layui-icon-delete"></i>批量删除#}
{#        </button>#}
{#    </div>#}
    <table class = "layui-hide" id = "articleList"></table>

    <script type = "text/html" id = "operateTpl">
        <a title = "查看" onclick = "WeAdminEdit('查看文章','/back/article/show', {% verbatim %}{{ d.id }}{% endverbatim %},900,500)" href = "javascript:;">
            <i class = "layui-icon">&#xe63c;</i>
        </a>
        <a title = "删除" onclick = "member_del(this,{% verbatim %}{{ d.id }}{% endverbatim %})" href = "javascript:;">
            <i class = "layui-icon">&#xe640;</i>
        </a>
    </script>
    {% csrf_token %}
    <script src = "{% static 'background/lib/layui/layui.js' %}" charset = "utf-8"></script>
    <script src = "{% static "background/js/article/list.js" %}" type = "text/javascript" charset = "utf-8"></script>

</div>
</body>

</html>